﻿using System.ComponentModel.DataAnnotations;
using AnQinFrameWorkAPI.Common.Enum;

namespace AnQinFrameWorkAPI.Entity.Blog.DTO.BlogGlobalConfig;

/// <summary>
///     博客全局配置新增模型
/// </summary>
public class BlogGlobalConfigAddDTO
{
    /// <summary>
    ///     博客全局配置编码
    /// </summary>
    [Required(ErrorMessage = "博客全局配置编码不可为空")]
    public string Code { get; set; }

    /// <summary>
    ///     博客全局配置内容
    /// </summary>
    [Required(ErrorMessage = "博客全局配置内容不可为空")]
    public string Content { get; set; }

    /// <summary>
    ///     博客全局配置枚举
    /// </summary>
    [Required(ErrorMessage = "博客全局配置枚举不可为空")]
    public BlogEnum.GlobalConfigEnum Status { get; set; }
}